package com.ttg.web.service.job;

import com.ttg.common.dto.TaskBaseDTO;
import com.ttg.common.entities.RattingTask;
import com.ttg.common.enums.TaskEnum;
import com.ttg.common.vo.TaskResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * Description：
 * Author: chenyou
 * Date: 2025/9/25 13:41
 * Company: ttg
 * Copyright: Copyright (c) 2025
 */
@Component
public class QualityManageJobService {

    @Autowired
    private IndustryScoreJobService industryScoreJobService;
    @Autowired
    private IndustryClassificationJobService industryClassificationJobService;
    @Autowired
    private MerchScoreJobService merchScoreJobService;
    @Autowired
    private MerchClassificationJobService merchClassificationJobService;

    @RattingTask(taskEnum = TaskEnum.QM_INDUSTRY_SCORE)
    public TaskResultVO industryScore(TaskBaseDTO reqDto){
        return industryScoreJobService.industryScore(reqDto);
    }


    @RattingTask(taskEnum = TaskEnum.QM_INDUSTRY_CLASSIFICATION)
    public TaskResultVO industryClassification(TaskBaseDTO reqDto){
        return industryClassificationJobService.industryClassification(reqDto);
    }

    @RattingTask(taskEnum = TaskEnum.QM_MERCH_SCORE)
    public TaskResultVO merchScore(TaskBaseDTO reqDto){
        return merchScoreJobService.merchScore(reqDto);
    }

    @RattingTask(taskEnum = TaskEnum.QM_MERCH_CLASSIFICATION)
    public TaskResultVO merchClassification(TaskBaseDTO reqDto){
        return merchClassificationJobService.merchClassification(reqDto);
    }
}
